package com.cpimex.eprice;
import java.util.Calendar;

public class Principal {

	/**
	 * @param args
	 */
	public static void main(String[] args)throws Exception {
		fechas();
	}
	
	
	
	
	private static void fechas(){
		Calendar c1 = Calendar.getInstance();
		Calendar c2 = Calendar.getInstance();
		
		c1.add(Calendar.YEAR, -10);
		
		long l1 = c1.getTimeInMillis();
		long l2 = c2.getTimeInMillis();
		
		c2.setTimeInMillis(l2-l1);
		
		System.out.println(c2.get(Calendar.YEAR));
		
	} 
}
